package com.ldy.gen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 收货地址表
 * </p>
 *
 * @author ldy
 * @since 2023-09-29 15:02:29
 */
@Getter
@Setter
@TableName("receiver_address")
@ApiModel(value = "ReceiverAddress对象", description = "收货地址表")
public class ReceiverAddress implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("收货人")
    @TableField("receiver_name")
    private String receiverName;

    @ApiModelProperty("收货电话")
    @TableField("receiver_phone")
    private String receiverPhone;

    @ApiModelProperty("省名称")
    @TableField("province")
    private String province;

    @ApiModelProperty("省编码")
    @TableField("province_code")
    private String provinceCode;

    @ApiModelProperty("市名称")
    @TableField("city")
    private String city;

    @ApiModelProperty("市编码")
    @TableField("city_code")
    private String cityCode;

    @ApiModelProperty("区名称")
    @TableField("area")
    private String area;

    @ApiModelProperty("区编码")
    @TableField("area_code")
    private String areaCode;

    @ApiModelProperty("详细地址")
    @TableField("detail")
    private String detail;

    @ApiModelProperty("是否默认，0表示非默认，1表示默认")
    @TableField("is_default")
    private Integer isDefault;

    @ApiModelProperty("数据创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("数据最后修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("数据创建者")
    @TableField("creator")
    private String creator;

    @ApiModelProperty("数据更新者")
    @TableField("updater")
    private String updater;


}
